package com.nana.petadventure.app
{
	import com.nana.petadventure.controller.GameController;
	import com.nana.petadventure.controller.MapController;
	import com.nana.petadventure.controller.SceneController;

	public class AppControllerList
	{
		private static var _instance:AppControllerList;
		
		public var appController:AppController;
		public var gameController:GameController;
		public var sceneController:SceneController;
		public var mapController:MapController;
		
		public function AppControllerList()
		{
			appController = new AppController();
			gameController = new GameController();
			sceneController = new SceneController();
			mapController = new MapController();
			
			if (_instance == null){
				super();
				_instance = this;
			} else {
				throw (new Error("实例化单例类出错-AppControllerList"));
			}
		}
		
		public static function getInstance():AppControllerList{
			if(_instance == null){
				_instance = new AppControllerList();
			}
			return _instance;
		}
	}
}